/**
 * VYPe11 Project
 * VYPe11 language compiler.
 * Authors: Jozef Lang (xlangj01), 
 * 			Zoltan Zemko (xzemko01)
 * 2011
 */
package cz.vutbr.fit.VYPe.team18.VYPe11.nodes.function;

import java.io.IOException;

import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.GlobalItemNode;
import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.IdentifierNode;
import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.data_type.DataTypeNode;
import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.data_type.DataTypeList;

public class FunctionDeclarationNode extends GlobalItemNode {
	private DataTypeNode returnType;
	private IdentifierNode id;
	private DataTypeList dataTypeList;
	
	public FunctionDeclarationNode(DataTypeNode type,
									IdentifierNode id,
									DataTypeList dataTypeList) {
		this.returnType=type;
		this.id=id;
		this.dataTypeList=dataTypeList;
	}

	public DataTypeNode getReturnType() {
		return returnType;
	}

	public IdentifierNode getId() {
		return id;
	}

	public DataTypeList getDataTypeList() {
		return dataTypeList;
	}

	@Override
	public void generateTAC() throws IOException {
		// deklaracie funkcii nie su uvedene v TAC kode		
	}
}
